package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.common.Paging;
import com.itheima.dto.UserLinkUserDto;
import com.itheima.entity.UserLinkUser;
import com.itheima.vo.userLinkUser.UserLinkUserFindVo;
import com.itheima.vo.userLinkUser.UserLinkUserVo;

import java.util.List;

/**
 * @author 51585
 * @description 针对表【user_link_user】的数据库操作Service
 * @createDate 2022-10-26 09:55:02
 */
public interface UserLinkUserService extends IService<UserLinkUser> {
    /**
     * 展示已建立的聊天
     *
     * @param keyword 关键字
     * @return 聊天列表对象vo
     * @throws Exception
     */
    List<UserLinkUserVo> showChats(String keyword) throws Exception;

    /**
     * 查找用户
     *
     * @param userLinkUserDto 筛选聊天好友dto
     * @return 查找好友vo
     */
    Paging<UserLinkUserFindVo> findUser(UserLinkUserDto userLinkUserDto) throws Exception;

    /**
     * 置顶用户
     *
     * @param userId 用户id
     * @throws Exception 异常
     */
    void topUser(String userId) throws Exception;

    /**
     * 取消置顶用户
     *
     * @param userId 用户id
     * @throws Exception 异常
     */
    void cancelTopUser(String userId) throws Exception;
}
